package com.ruoyi.product.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品分类对象 product_category
 *
 * @author liuhizhong
 * @date 2025-07-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductCategory extends TreeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 分类名称（如“餐桌”、“沙发”）
     */
    @Excel(name = "分类名称", readConverterExp = "如=“餐桌”、“沙发”")
    private String name;

    /**
     * 父级分类ID
     */
    @Excel(name = "父级分类ID")
    private Long parentId;

    /**
     * 层级（1-一级，2-二级）
     */
    @Excel(name = "层级", readConverterExp = "1=-一级，2-二级")
    private Long level;

}
